import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Employee employee = new Employee(scanner.next(),scanner.next(), scanner.nextDouble());
        Manager manager = new Manager(scanner.next(), scanner.next(), scanner.nextDouble(), scanner.nextDouble());
        System.out.println("姓名: "+employee.getName()+", 工号: "+employee.getId()+", 基本工资: "+employee.getSalary());
        System.out.println("姓名: "+manager.getName()+", 工号: "+manager.getId()+", 基本工资: "+manager.getSalary()+", 奖金: "+manager.getBonus());

    }
}
